package com.itheima.day02;
/*
案例2:寺庙和尚比较身高;
 */

import java.util.Scanner;

public class TestClassCase02 {
    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);


        System.out.println("请输入第一个和尚身高:");
        int h1=sc.nextInt();

        System.out.println("请输入第二个和尚身高:");
        int h2=sc.nextInt();

        System.out.println("请输入第三个和尚身高:");
        int h3=sc.nextInt();

        int tempMax = h1>h2 ? h1:h2;
        int Max = tempMax>h3 ? tempMax:h3;

       // int Max = h1>h2 ? h1:h2>h3 ? h1>h2 ? h1:h2:h3;



        System.out.println("最大为:"+Max);

    }
}
